<!DOCTYPE html>
<html>
<head>
    <meta name="layout" content="main"/>
    <title>用户: ${this.user.fullName}</title>
</head>

<body class="fixed-navbar fixed-sidebar">
<div class="small-header">
    <div class="hpanel">
        <div class="panel-body">
            <div id="hbreadcrumb" class="pull-right">
                <ol class="hbreadcrumb breadcrumb">
                    <li>Cake Store</li>
                    <li><g:link controller="user" action="index">用户管理</g:link></li>
                    <li class="active">
                        <span>${this.user.fullName}</span>
                    </li>
                </ol>
            </div>

            <h2 class="font-light m-b-xs">
                用户: ${this.user.fullName}
            </h2>
            <small><span class="glyphicon glyphicon-cog" aria-hidden="true"></span>${this.user.fullName} 的资料</small>
        </div>
    </div>
</div>

<div class="content animate-panel">
    <div class="row">
        <div class="hpanel hred contact-panel">
            <div class="panel-heading">
                <sec:ifAnyGranted roles="ROLE_ADMINISTRATOR">
                    <div class="panel-tools">
                        <g:link class="btn btn-info btn-xs" action="edit"
                                resource="${this.user}"><i class="fa fa-edit"></i>编辑</g:link>
                    </div>
                </sec:ifAnyGranted>
                用户基本信息
            </div>

            <div class="panel-body">
                <div class="text-muted font-bold m-b-xs ol-md-6">
                    <div class="col-md-12"><h4><a href="">${this.user.fullName}</a></h4></div>

                    <div class="col-md-2">手机号：${this.user.cellphone}</div>

                    <div class="col-md-2">用户名：${this.user.username}</div>

                    <div class="col-md-2"><strong>启用：${this.user?.enabled ? '是' : '否'}</strong></div>

                    <div class="col-md-2"><strong>账户过期：${this.user?.accountExpired ? '是' : '否'}</strong></div>

                    <div class="col-md-2"><strong>账户锁定：${this.user?.accountLocked ? '是' : '否'}</strong></div>

                    <div class="col-md-2"><strong>密码过期：${this.user?.passwordExpired ? '是' : '否'}</strong></div>

                </div>
            </div>
        </div>
    </div>
</div>

</body>
</html>
